package com.damieoa.damieoa.service;

import com.damieoa.damieoa.dao.StatementMapper;
import com.damieoa.damieoa.pojo.Statement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class StatementServiceImpl implements StatementService {

    @Autowired
    private StatementMapper statementMapper;

    //查询新聘员工
    @Override
    public List<Statement> queryNewStaff(Statement statement) {
        return statementMapper.queryNewStaff(statement);
    }

    //离职员工统计
    @Override
    public List<Statement> dimissionStaff(Statement statement) {
        return statementMapper.dimissionStaff(statement);
    }

    //查询部门调动员工
    @Override
    public List<Statement> departmentStaff(Statement statement) {
        return statementMapper.departmentStaff(statement);
    }

    //查询岗位调动员工
    @Override
    public List<Statement> stationStaff(Statement statement) {
        return statementMapper.stationStaff(statement);
    }
}
